package com.huawei.classroom.student.h05;

public class Dog extends Soldier{
	public Dog() {
		this.health = 50;
		this.damage = 5;
	}
	@Override
	public void attack(GameObject who) {
		if(who instanceof Soldier) {
			who.health = 0;
			this.dead(who);
		}else {
			super.attack(who);
		}
	}
}
